Extension function to convert a LocalDate to a Date. This function converts the LocalDate to a Date by first setting it to the start of the day, then converting it to an Instant and finally to a Date object.
Return
The corresponding Date representation of the LocalDate.